//
//  Enemy.h
//  airfight
//
//  Created by aaron more on 12-9-10.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_Enemy_h
#define airfight_Enemy_h

#include "cocos2d.h"
#include "Bullet.h"

USING_NS_CC;

class Enemy: public CCObject
{
    
   
protected:
    int m_fighterId;  //fighter id
    int m_blood; //血量
    int m_armor; //护甲
    std::string m_res; //资源
    
    CCDictionary *m_pBulletDictionary;//子弹dict
    
    
public:
    Enemy();
    virtual ~Enemy();
    
    inline int getFighterId() { return m_fighterId; }
    inline void setFighterId(int p_fighterId) { m_fighterId = p_fighterId; }
    
    inline int getBlood() { return m_blood; }
    inline void setBlood(int p_blood) { m_blood = p_blood; }
    
    inline int getArmor() { return m_armor; }
    inline void setArmor(int p_armor) { m_armor = p_armor; }
    
    inline std::string getRes() { return m_res; }
    inline void setRes(std::string p_res) { m_res = p_res; }
    
    void addBullet(int p_id,Bullet *p_bullet);
    CCDictionary* getBullets();

    
};

#endif
